package com.dd.service;

import com.dd.entity.Inventory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.entity.InventoryVO;
import com.github.pagehelper.PageInfo;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
public interface IInventoryService  extends IService<Inventory>{

    Inventory selectAllByProductId(Integer productId);
    int updateQuantityAndCreatedTime(int quantity,int productId);

    int insertQuantityAndCreatedTime(int quantity,int productId);

    PageInfo<InventoryVO> selectAllInventory(int pageNum, String productName);

}
